//函数常见形式
#include<iostream>
#include<string.h>
using namespace std;

//1.无参无反
void test01()
{
	cout << "this is test01" << endl;
}
//2.有参无反
void test02(int a)
{
	cout << "this is test02 a = " << a << endl;
}
//3.无参有反
int test03()
{
	cout << "this is test03 " << endl;
	return 1000;
}
//4.有参有反
int test04(int a)
{
	cout << "this is test02 a = " << a << endl;
	return a;
}

int main()
{
	test01();
	cout << "\n";

	test02(100);
	cout << "\n";

	int num1 = test03();
	cout << "num1=" << num1 << endl;
	cout << "\n";

	test04(500);
	cout << "\n";
	system("pause");
	return 0;
}
